package com.mall.service;

import com.mall.dao.UserMapper;
import com.mall.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

  @Autowired
  private  UserMapper userMapper;

    public User getList(Integer id){
       User user= userMapper.selectByPrimaryKey(id);
       return  user;
    }

}
